<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<style>
    td{
        width: 100px;
    }
</style>
<div id="aaa">
    <table>
        <tr v-for="(user,i) in users">
            <td v-text="i"></td>
            <td>{{user.name}}</td>
            <td>{{user.gender}}</td>
            <td>{{user.age}}</td>
        </tr>
    </table>
    <br>
    <table>
        <tr v-for="(u,i) in user">
            <td v-text="i"></td>
            <td>{{u}}</td>
        </tr>
    </table>
    <br>
    <table>
        <tr v-for="(v,k,i) in user">
            <td>{{i}}</td>
            <td v-text="k"></td>
            <td>{{v}}</td>
        </tr>
    </table>
    <br>
    <span v-for="a in 10">
        {{a}},
    </span>
</div>

</body>
</html>
<script src="./node_modules/vue/dist/vue.js"></script>
<script type="text/javascript">
    let dataobj = {
        users: [],
        user:{name:'柳岩', gender:'女', age: 21}
    };
    let aa = new Vue({
        el: "#aaa",
        data: dataobj,
        methods: {
            clickMe(val) {
                alert(val)
            }
        },
        created(){
            this.users =[
                {name:'柳岩', gender:'女', age: 21},
                {name:'有哥', gender:'男', age: 30},
                {name:'范冰冰', gender:'女', age: 24},
                {name:'刘亦菲', gender:'女', age: 18},
                {name:'古力娜扎', gender:'女', age: 25}
            ]
        }
    })
</script>